package com.huang.init;

import javax.annotation.Resource;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.huang.service.MenuService;

/**
 * 初始化菜单与角色之间的关系
 *
 * @author han
 * @since 2022-05-31 16:01:26
 */
@Component
public class OauthInit implements CommandLineRunner {

    @Resource
    private MenuService menuService;


    @Override
    public void run(String... args) throws Exception {
        initOauthUrl();
    }

    private void initOauthUrl() {
        menuService.findUrlAndRole();
    }
}
